package com.example.warehouse_manager.entity;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 规格单位表
* @TableName unit
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Unit implements Serializable {

    /**
    *
    */
    @NotNull(message="[]不能为空")
    private Integer unitId;
    /**
    *
    */
    @Size(max= 20,message="编码长度不能超过20")
    @Length(max= 20,message="编码长度不能超过20")
    private String unitName;
    /**
    *
    */
    @Size(max= 20,message="编码长度不能超过20")
    @Length(max= 20,message="编码长度不能超过20")
    private String unitDesc;

}
